export default function timer() {
  let startTime = 0;
  return {
    name: 'timer',
    version: '1.0.0',
    buildStart() {
      console.log('🚀 构建开始');
      startTime = Date.now();
    },
    buildEnd() {
      console.log('✅ 构建完成');
      const endTime = Date.now();
      console.log('构建时间：', endTime - startTime, 'ms');
    },
    writeBundle(){
      console.log('✅ 写入完成');
      const endTime = Date.now();
      console.log('写入时间：', endTime - startTime, 'ms');
    }
  };
}